package com.iflytek.config;

import org.springframework.cloud.gateway.route.RouteLocator;
import org.springframework.cloud.gateway.route.builder.RouteLocatorBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author yfliu9
 * @version 1.0
 * @description: 路由转发java配置类
 * @date 2021/9/10 15:11
 */
@Configuration
public class GatewayConfig {

/*    @Bean
    public RouteLocator customRouteLocator(RouteLocatorBuilder builder) {
        return builder.routes()
                .route("category_route", r -> r.path("/categroy").uri("http://localhost:8787"))
                .route("product_route", r -> r.path("/product").uri("http://localhost:8788"))
                .build();
    }*/
}
